﻿using System.Collections.Generic;
using MyFloridaHouse.libSvDTO;
using System.Runtime.Serialization;

namespace MyFloridaHouse.libSTO
{
	//Todo: Remove obsolete code.
	/// <summary>
	/// [Obsolete] Data Dictionary Part STO (server transfer object)
	/// </summary>
	/// <remarks>This object is never called from WCF.</remarks>
	public class DataDictionaryPartSTO
    {
        List<DataDictionaryPartDTO> _dictionaryPart;
        string _errorMessage;

		/// <summary>
		/// Initializes a new instance of the <see cref="DataDictionaryPartSTO"/> class.
		/// </summary>
        public DataDictionaryPartSTO()
        {
            _dictionaryPart = new List<DataDictionaryPartDTO>();
            _errorMessage = "";
        }

		/// <summary>
		/// Gets or sets the dictionary part.
		/// </summary>
		/// <value>The dictionary part.</value>
        [DataMember]
        public List<DataDictionaryPartDTO> dictionaryPart
        {
            get { return _dictionaryPart; }
            set { _dictionaryPart = value; }
        }

		/// <summary>
		/// Gets or sets the error message.
		/// </summary>
		/// <value>The error message.</value>
        [DataMember]
        public string errorMessage
        {
            get { return _errorMessage; }
            set { _errorMessage = value; }
        }
    }
}
